import config from "@renderer/config"
import http from "@renderer/utils/request"

export default {
  //登陆日志
  loginlog: {
    list: {
      url: `${config.API_URL}/logger/login/page`,
      name: "操作日志列表",
      get: async function (data) {
        return await http.get(this.url, data);
      }
    },
    del: {
      url: `${config.API_URL}/logger/login/delete`,
      name: "删除登陆日志（批量）",
      post: async function (data) {
        return await http.post(this.url,data);
      }
    },
    clean: {
      url: `${config.API_URL}/logger/login/clean`,
      name: "操作清空登录日志",
      get: async function () {
        return await http.get(this.url,);
      }
    },
  },

  //操作日志
  operatelog:{
    list: {
      url: `${config.API_URL}/logger/operate/page`,
      name: "操作日志列表",
      get: async function (data) {
        return await http.get(this.url,data);
      }
    },
    del: {
      url: `${config.API_URL}/logger/operate/delete`,
      name: "删除操作日志（批量）",
      post: async function (data) {
        return await http.post(this.url,data);
      }
    },
    clean: {
      url: `${config.API_URL}/logger/login/clean`,
      name: "操作清空操作日志",
      get: async function () {
        return await http.get(this.url,);
      }
    },
    detail: {
      url: `${config.API_URL}/logger/operate/get/`,
      name: "操作日志详情",
      get: async function (id) {
        return await http.get(this.url + `${id}`);
      }
    },
  },


}
